<!DOCTYPE html>
<html>
<head>
<title>关键字设置</title>
#parse("sys/header.html")
</head>
<body>
<div id="rrapp" v-cloak>
	<div v-show="showList">
		<div class="grid-btn">
			#if($shiro.hasPermission("weixinkeyword:save"))
			<a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
			#end
			#if($shiro.hasPermission("weixinkeyword:update"))
			<a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
			#end
			#if($shiro.hasPermission("weixinkeyword:delete"))
			<a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
			#end
		</div>
	    <table id="jqGrid"></table>
	    <div id="jqGridPager"></div>
    </div>
    
    <div v-show="!showList" class="panel panel-default">
		<div class="panel-heading">{{title}}</div>
		<form class="form-horizontal">
											<div class="form-group">
			   	<div class="col-sm-2 control-label">关键字</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="weixinKeyword.keyword" placeholder="关键字"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">微信ID</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="weixinKeyword.weixinId" placeholder="微信ID"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">引导提示</div>
			   	<div class="col-sm-10">
				   <select class="form-control"   v-model="weixinKeyword.hintFlag" placeholder="1提示2不提示">  
					   <option value="1">提示
					   <option value="2">不提示
				  </select>  
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">返回信息类型</div>
			   	<div class="col-sm-10">
			   	<select class="form-control"   v-model="weixinKeyword.contentType" placeholder="返回信息类型">  
					   <option value="text">文本
					   <option value="image">图片
					   <option value="link">链接地址（暂不支持）
					   <option value="voice">语音（暂不支持）
					   <option value="video">视频（暂不支持）
					   <option value="news">图文（暂不支持）
				  </select>  
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">返回信息</div>
			   	<div class="col-sm-10">
			      <textarea class="form-control" v-model="weixinKeyword.contentInfo" placeholder="返回信息"></textarea>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">创建时间</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="weixinKeyword.createTime" placeholder="创建时间"/>
			    </div>
			</div>
							<div class="form-group">
				<div class="col-sm-2 control-label"></div> 
				<input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
				&nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
			</div>
		</form>
	</div>
</div>

<script src="${rc.contextPath}/js/weixin/weixinkeyword.js?_${date.systemTime}"></script>
</body>
</html>